<foreach name="dict" item="val" key="key">
    <input type="radio" name="{$name}" value="{$key}" title="{$val}" <if condition="$key eq $value">checked</if> />
</foreach>